<%@ include file="/inc.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
  <h1>用户列表</h1>
  <table>
      <tr>
          <td>ID</td>
          <td>用户名</td>
          <td>操作</td>
      </tr>
      <s:iterator value="#users">
        <tr>
            <td>${id}</td>
            <td>${username}</td>
            <td>
                <a href="/admin/delete?id=${id}">删除</a>
                <a href="/user/reset?id=${id}">密码重置</a>
            </td>
        </tr>
      </s:iterator>
  </table>
  <a href="/admin/add">添加用户</a>
</body>
</html>
